# 读excel
import xlrd

# 按行读取excel
def fun_read_excel(file_name):
    data = xlrd.open_workbook(file_name)
    table = data.sheets()[0]
    nrows = table.nrows
    for i in range(nrows):
        row_data = table.row_values(i)
        yield row_data


if __name__ == '__main__':
    file_name = r'./WR_config_data.xlsx'
    for row_data in fun_read_excel(file_name):
        print(row_data)